package com.zc.study.designPattern.行为型设计模式.ChainOfResponsibilityaPattern;

import com.zc.study.thread.多线程第三章节.thread3_1_11.P;

/**
 * 审批者类:抽象处理者
 */
public abstract class Approver {
    protected  Approver successor; //定义后继对象
    protected String name; //审批者姓名

    public Approver(String name) {
        this.name = name;
    }

    //设置后继者
    public void setSuccessor(Approver successor){
        this.successor=successor;

    }

    //抽象请求处理方法
    public abstract void processRequest(PurchaseRequest request);
}
